import re
import requests

url = "http://news.baidu.com/ent"
headers = {
    "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"
}

response = requests.get(url, headers=headers)
# bytes
data = response.content.decode()

# with open('05new.html','wb') as f:
#     f.write(data)


re_str = r'<li class="bold-item"><a href="(.*?)" mon="(.*?)" target="_blank">(.*?)</a></li>'

result = re.findall(re_str, data)

print(result)
"""
    <a href="http://ent.ifeng.com/a/20180826/43093296_0.shtml?_zbs_baidu_news" mon="col=1&amp;a=2&amp;pn=1" target="_blank">
    (.*)
    </a>
"""

re_twop ='<a mon="(.*)" target="_blank" href="(.*?)">(.*?)</a>'

result = re.findall(re_twop,data,re.S)
print(result)